<g-data-source url="/grule-manager/validator" data-source-name="validatorSource"
               page="true"></g-data-source>

<div class="engine-table-a">
    <div class="engine-biaod" style="margin-top:0px;" >
        <div><button type="button" class="engine-btn-default" ng-click="addValidator()" align="right"><i class="icon-engine-plus"></i>增加</button></div>
        <form class="form-inline" >
            <div class="form-group">
                <div class="attribute-form-group-l">校验名称：</div>
                <div class="attribute-form-group-r">
                    <input type="text" id = "validatorName" ng-model="validatorName">
                </div>
                <div class="clear"></div>
            </div>

            <button type="button" class="engine-btn-default" ng-click="submit()" >查询
            </button>
        </form>
    </div>
    <br>
    <div >
        <g-data-grid data-source-name="validatorSource" style="height: auto;width:651px;"
                     ng-cloak>
            <g-column width="200px" align="center" data="validatorName">
                校验名称
            </g-column>
            <g-column width="300px" align="center" data="validator">
                校验配置
            </g-column>
            <g-column width="150px" align="center">
                操作
                <g-column-tmpl >
                    <a href="javascript:" ng-click="removeValidator(row)"><span class="glyphicon glyphicon-remove"
                                                                            aria-hidden="true"></span>&nbsp;&nbsp;</a>
                    <a href="javascript:" ng-click="editValidator(row)"><span
                            class="glyphicon glyphicon-edit" aria-hidden="true"></span>&nbsp;&nbsp;修改</a>
                </g-column-tmpl>
            </g-column>
        </g-data-grid>
    </div>
    <g-pagination-navi source-name="validatorSource"></g-pagination-navi>
    <g-pagination-size source-name="validatorSource"></g-pagination-size>
</div>

<!--表格结束-->
